﻿package net.wangit.jdbc.type;

import net.wangit.Row;
import net.wangit.jdbc.Type;
import net.wangit.util.StringUtil;

@SuppressWarnings("serial")
public class DecimalType extends ScaleType {

	public DecimalType(Row row) {
		super(row);
	}

	public int code() {
		return Type.DECIMAL;
	}

	public String getTypeName() {
		return "decimal";
	}

	public String formatInput(String value) {
		return StringUtil.clearSpace(value);
	}

	public String formatValue(String value) {
		return value;
	}
}
